
  @extends('layout.layout')
   @section('content') 
<h1 class="page-title">商品分类管理</h1> 
  <div class="row-fluid"> 
   <div class="span12"> 
    <div class="widget"> 
    <div class="widget"> 
     <div class="widget-header"> 
      <h4>分类列表</h4> 
     </div> 
     <form action="" method="get">
     <div class="widget-content"> 
      <div id="data-table_wrapper" class="dataTables_wrapper form-inline" role="grid">
       <div class="row-fluid">
        <div class="span6">
         <div class="dataTables_length">
          
         </div>
        </div>
         <div class="dataTables_filter">
                             <label>搜索<input name="seek" aria-controls="data-table" type="text" >
                             <button class="btn btn-primary"  style="height:30px">查询</button>
                             </label>
                            </div>
       </div>
       </form>
       <table class="table table-striped table-bordered dataTable" aria-describedby="data-table_info"> 
        <thead> 
         <tr role="row">
          <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 199px;">id</th>
          <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 199px;">分类名称</th>
          <th class="hidden-phone sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 293px;">所属分类</th>
          <th class="hidden-phone sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 269px;">状态</th>
          
          <th class="sorting" role="columnheader" tabindex="0" aria-controls="data-table" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" style="width: 123px;">操作</th>
         </tr> 
        </thead> 
        <tbody role="alert" aria-live="polite" aria-relevant="all">
         @foreach($class as $k=>$v)
         <tr class="gradeA odd"> 
          <td class=" sorting_1">{{$v->id}}</td> 
          <td class="hidden-phone ">{{$v->name}}</td> 
          <td class="hidden-phone ">{{$v->pid}}</td> 
          <td class="center hidden-phone">
          @if($v->status == 1)
          <span class="label label-success">已激活</span>
          
          @elseif($v->status == 2)
          <span class="label label-important">未激活</span>
          @endif  </td> 

          
        

           
          <td class="center ">
          <span class="icon-remove label label-important">
          <a  href="{{url('/admin/goodscate/delete',['id'=>$v->id])}}">删除</a>
          </span>
          &nbsp;&nbsp;
          <span class="icon-edit label label-success">
          <a  href="{{url('/admin/goodscate/edit',['id'=>$v->id])}}">修改</a>
          </span>
          </td> 
         </tr>
     @endforeach
        

        </tbody>
       </table>
       <div class="row-fluid">
        <div class="span6">
         <div class="dataTables_info" id="data-table_info">
          Showing 1 to 10 of 57 entries
         </div>
        </div>
        <div class="span6">
         <div class="dataTables_paginate paging_bootstrap pagination">
   
         </div>
        </div>
       </div>
      </div> 
      <div class="clearfix"></div> 
     </div> 
     </div> 
    </div> 
   </div>



   @endsection
